using System;
using System.Collections.Generic;
using System.Text;
using System.Xml.Serialization;

namespace SMS.Common.Entities
{
    public class MaterialUsing
    {
        private string using_date;
        [XmlElement("ClosingStocktakingDate",Order=1)]
        public string Using_Date
        {
            get { return using_date; }
            set { using_date = value; }
        }

        private string date1;
        [XmlElement("OpeningStocktakingDate",Order=2)]
        public string Date1
        {
            get { return date1; }
            set { date1 = value; }
        }

        private string mat_id;
        [XmlElement("MaterialId",Order=3)]
        public string Mat_ID
        {
            get { return mat_id; }
            set { mat_id = value; }
        }

        private string mat_name;
        [XmlElement("MaterialName",Order=4)]
        public string Mat_Name
        {
            get { return mat_name; }
            set { mat_name = value; }
        }

        private string ord_unit;
        [XmlElement("OrderUnit",Order=5)]
        public string Ord_Unit
        {
            get { return ord_unit; }
            set { ord_unit = value; }
        }

        private string using_type;
        [XmlElement("UsingType",Order=8)]
        public string Using_Type
        {
            get { return using_type; }
            set { using_type = value; }
        }

        private float qty;
        [XmlElement("UsingQty",Order=7)]
        public float Qty
        {
            get { return qty; }
            set { qty = value; }
        }
        private string spec;
        [XmlElement("Spec",Order=6)]
        public string Spec
        {
            get { return spec; }
            set { spec = value; }
        }

        private string  id;
        [XmlElement("Id",Order=9)]
        public string  Id
        {
            get { return id; }
            set { id = value; }
        }

        private string  storeId;
        [XmlElement("StoreId", Order = 10)]
        public string  StoreID
        {
            get { return storeId; }
            set { storeId = value; }
        }

    }

    public class MaterialUsings
    {
        [XmlElement("MaterialUsing")]
        public MaterialUsing[] usings;
    }
}
